package ext.tianma.model;

@SuppressWarnings({"cast", "deprecation", "unchecked"})
public abstract class _RDPChange extends wt.fc.WTObject implements java.io.Externalizable {
   static final long serialVersionUID = 1;

   static final java.lang.String RESOURCE = "ext.tianma.model.modelResource";
   static final java.lang.String CLASSNAME = RDPChange.class.getName();

   /**
    * windchill对象
    *
    * @see ext.tianma.model.RDPChange
    */
   public static final java.lang.String PERSISTABLE = "persistable";
   wt.fc.ObjectReference persistable;
   /**
    * windchill对象
    *
    * @see ext.tianma.model.RDPChange
    */
   public wt.fc.ObjectReference getPersistable() {
      return persistable;
   }
   /**
    * windchill对象
    *
    * @see ext.tianma.model.RDPChange
    */
   public void setPersistable(wt.fc.ObjectReference persistable) throws wt.util.WTPropertyVetoException {
      persistableValidate(persistable);
      this.persistable = persistable;
   }
   void persistableValidate(wt.fc.ObjectReference persistable) throws wt.util.WTPropertyVetoException {
   }

   /**
    * 状况
    *
    * @see ext.tianma.model.RDPChange
    */
   public static final java.lang.String STATUS = "status";
   static int STATUS_UPPER_LIMIT = -1;
   java.lang.String status;
   /**
    * 状况
    *
    * @see ext.tianma.model.RDPChange
    */
   public java.lang.String getStatus() {
      return status;
   }
   /**
    * 状况
    *
    * @see ext.tianma.model.RDPChange
    */
   public void setStatus(java.lang.String status) throws wt.util.WTPropertyVetoException {
      statusValidate(status);
      this.status = status;
   }
   void statusValidate(java.lang.String status) throws wt.util.WTPropertyVetoException {
      if (STATUS_UPPER_LIMIT < 1) {
         try { STATUS_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("status").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { STATUS_UPPER_LIMIT = 50; }
      }
      if (status != null && !wt.fc.PersistenceHelper.checkStoredLength(status.toString(), STATUS_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "status"), java.lang.String.valueOf(java.lang.Math.min(STATUS_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "status", this.status, status));
   }

   /**
    * rdpId
    *
    * @see ext.tianma.model.RDPChange
    */
   public static final java.lang.String RDP_ID = "rdpId";
   static int RDP_ID_UPPER_LIMIT = -1;
   java.lang.String rdpId;
   /**
    * rdpId
    *
    * @see ext.tianma.model.RDPChange
    */
   public java.lang.String getRdpId() {
      return rdpId;
   }
   /**
    * rdpId
    *
    * @see ext.tianma.model.RDPChange
    */
   public void setRdpId(java.lang.String rdpId) throws wt.util.WTPropertyVetoException {
      rdpIdValidate(rdpId);
      this.rdpId = rdpId;
   }
   void rdpIdValidate(java.lang.String rdpId) throws wt.util.WTPropertyVetoException {
      if (RDP_ID_UPPER_LIMIT < 1) {
         try { RDP_ID_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("rdpId").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { RDP_ID_UPPER_LIMIT = 50; }
      }
      if (rdpId != null && !wt.fc.PersistenceHelper.checkStoredLength(rdpId.toString(), RDP_ID_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "rdpId"), java.lang.String.valueOf(java.lang.Math.min(RDP_ID_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "rdpId", this.rdpId, rdpId));
   }

   /**
    * 变更信息
    *
    * @see ext.tianma.model.RDPChange
    */
   public static final java.lang.String CHANGE_INFO = "changeInfo";
   java.sql.Blob changeInfo;
   /**
    * 变更信息
    *
    * @see ext.tianma.model.RDPChange
    */
   public java.sql.Blob getChangeInfo() {
      return changeInfo;
   }
   /**
    * 变更信息
    *
    * @see ext.tianma.model.RDPChange
    */
   public void setChangeInfo(java.sql.Blob changeInfo) throws wt.util.WTPropertyVetoException {
      changeInfoValidate(changeInfo);
      this.changeInfo = changeInfo;
   }
   void changeInfoValidate(java.sql.Blob changeInfo) throws wt.util.WTPropertyVetoException {
   }

   /**
    * rdp功能模块
    *
    * @see ext.tianma.model.RDPChange
    */
   public static final java.lang.String MODULE = "module";
   static int MODULE_UPPER_LIMIT = -1;
   java.lang.String module;
   /**
    * rdp功能模块
    *
    * @see ext.tianma.model.RDPChange
    */
   public java.lang.String getModule() {
      return module;
   }
   /**
    * rdp功能模块
    *
    * @see ext.tianma.model.RDPChange
    */
   public void setModule(java.lang.String module) throws wt.util.WTPropertyVetoException {
      moduleValidate(module);
      this.module = module;
   }
   void moduleValidate(java.lang.String module) throws wt.util.WTPropertyVetoException {
      if (MODULE_UPPER_LIMIT < 1) {
         try { MODULE_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("module").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { MODULE_UPPER_LIMIT = 100; }
      }
      if (module != null && !wt.fc.PersistenceHelper.checkStoredLength(module.toString(), MODULE_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "module"), java.lang.String.valueOf(java.lang.Math.min(MODULE_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "module", this.module, module));
   }

   /**
    * 责任人，RDP传输工号
    *
    * @see ext.tianma.model.RDPChange
    */
   public static final java.lang.String OWNER = "owner";
   static int OWNER_UPPER_LIMIT = -1;
   java.lang.String owner;
   /**
    * 责任人，RDP传输工号
    *
    * @see ext.tianma.model.RDPChange
    */
   public java.lang.String getOwner() {
      return owner;
   }
   /**
    * 责任人，RDP传输工号
    *
    * @see ext.tianma.model.RDPChange
    */
   public void setOwner(java.lang.String owner) throws wt.util.WTPropertyVetoException {
      ownerValidate(owner);
      this.owner = owner;
   }
   void ownerValidate(java.lang.String owner) throws wt.util.WTPropertyVetoException {
      if (OWNER_UPPER_LIMIT < 1) {
         try { OWNER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("owner").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { OWNER_UPPER_LIMIT = 100; }
      }
      if (owner != null && !wt.fc.PersistenceHelper.checkStoredLength(owner.toString(), OWNER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "owner"), java.lang.String.valueOf(java.lang.Math.min(OWNER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "owner", this.owner, owner));
   }

   /**
    * 数据创建者，RDP传输工号
    *
    * @see ext.tianma.model.RDPChange
    */
   public static final java.lang.String CREATOR = "creator";
   static int CREATOR_UPPER_LIMIT = -1;
   java.lang.String creator;
   /**
    * 数据创建者，RDP传输工号
    *
    * @see ext.tianma.model.RDPChange
    */
   public java.lang.String getCreator() {
      return creator;
   }
   /**
    * 数据创建者，RDP传输工号
    *
    * @see ext.tianma.model.RDPChange
    */
   public void setCreator(java.lang.String creator) throws wt.util.WTPropertyVetoException {
      creatorValidate(creator);
      this.creator = creator;
   }
   void creatorValidate(java.lang.String creator) throws wt.util.WTPropertyVetoException {
      if (CREATOR_UPPER_LIMIT < 1) {
         try { CREATOR_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("creator").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { CREATOR_UPPER_LIMIT = 100; }
      }
      if (creator != null && !wt.fc.PersistenceHelper.checkStoredLength(creator.toString(), CREATOR_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "creator"), java.lang.String.valueOf(java.lang.Math.min(CREATOR_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "creator", this.creator, creator));
   }

   /**
    * 预留字段1
    *
    * @see ext.tianma.model.RDPChange
    */
   public static final java.lang.String STR_1 = "str_1";
   static int STR_1_UPPER_LIMIT = -1;
   java.lang.String str_1;
   /**
    * 预留字段1
    *
    * @see ext.tianma.model.RDPChange
    */
   public java.lang.String getStr_1() {
      return str_1;
   }
   /**
    * 预留字段1
    *
    * @see ext.tianma.model.RDPChange
    */
   public void setStr_1(java.lang.String str_1) throws wt.util.WTPropertyVetoException {
      str_1Validate(str_1);
      this.str_1 = str_1;
   }
   void str_1Validate(java.lang.String str_1) throws wt.util.WTPropertyVetoException {
      if (STR_1_UPPER_LIMIT < 1) {
         try { STR_1_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("str_1").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { STR_1_UPPER_LIMIT = 200; }
      }
      if (str_1 != null && !wt.fc.PersistenceHelper.checkStoredLength(str_1.toString(), STR_1_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "str_1"), java.lang.String.valueOf(java.lang.Math.min(STR_1_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "str_1", this.str_1, str_1));
   }

   /**
    * 预留字段2
    *
    * @see ext.tianma.model.RDPChange
    */
   public static final java.lang.String STR_2 = "str_2";
   static int STR_2_UPPER_LIMIT = -1;
   java.lang.String str_2;
   /**
    * 预留字段2
    *
    * @see ext.tianma.model.RDPChange
    */
   public java.lang.String getStr_2() {
      return str_2;
   }
   /**
    * 预留字段2
    *
    * @see ext.tianma.model.RDPChange
    */
   public void setStr_2(java.lang.String str_2) throws wt.util.WTPropertyVetoException {
      str_2Validate(str_2);
      this.str_2 = str_2;
   }
   void str_2Validate(java.lang.String str_2) throws wt.util.WTPropertyVetoException {
      if (STR_2_UPPER_LIMIT < 1) {
         try { STR_2_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("str_2").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { STR_2_UPPER_LIMIT = 200; }
      }
      if (str_2 != null && !wt.fc.PersistenceHelper.checkStoredLength(str_2.toString(), STR_2_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "str_2"), java.lang.String.valueOf(java.lang.Math.min(STR_2_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "str_2", this.str_2, str_2));
   }

   /**
    * 预留字段3
    *
    * @see ext.tianma.model.RDPChange
    */
   public static final java.lang.String STR_3 = "str_3";
   static int STR_3_UPPER_LIMIT = -1;
   java.lang.String str_3;
   /**
    * 预留字段3
    *
    * @see ext.tianma.model.RDPChange
    */
   public java.lang.String getStr_3() {
      return str_3;
   }
   /**
    * 预留字段3
    *
    * @see ext.tianma.model.RDPChange
    */
   public void setStr_3(java.lang.String str_3) throws wt.util.WTPropertyVetoException {
      str_3Validate(str_3);
      this.str_3 = str_3;
   }
   void str_3Validate(java.lang.String str_3) throws wt.util.WTPropertyVetoException {
      if (STR_3_UPPER_LIMIT < 1) {
         try { STR_3_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("str_3").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { STR_3_UPPER_LIMIT = 200; }
      }
      if (str_3 != null && !wt.fc.PersistenceHelper.checkStoredLength(str_3.toString(), STR_3_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "str_3"), java.lang.String.valueOf(java.lang.Math.min(STR_3_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "str_3", this.str_3, str_3));
   }

   public java.lang.String getConceptualClassname() {
      return CLASSNAME;
   }

   public wt.introspection.ClassInfo getClassInfo() throws wt.introspection.WTIntrospectionException {
      return wt.introspection.WTIntrospector.getClassInfo(getConceptualClassname());
   }

   public java.lang.String getType() {
      try { return getClassInfo().getDisplayName(); }
      catch (wt.introspection.WTIntrospectionException wte) { return wt.util.WTStringUtilities.tail(getConceptualClassname(), '.'); }
   }

   public static final long EXTERNALIZATION_VERSION_UID = 5615725834439641849L;

   public void writeExternal(java.io.ObjectOutput output) throws java.io.IOException {
      output.writeLong( EXTERNALIZATION_VERSION_UID );

      super.writeExternal( output );

      output.writeObject( changeInfo );
      output.writeObject( creator );
      output.writeObject( module );
      output.writeObject( owner );
      output.writeObject( persistable );
      output.writeObject( rdpId );
      output.writeObject( status );
      output.writeObject( str_1 );
      output.writeObject( str_2 );
      output.writeObject( str_3 );
   }

   protected void super_writeExternal_RDPChange(java.io.ObjectOutput output) throws java.io.IOException {
      super.writeExternal(output);
   }

   public void readExternal(java.io.ObjectInput input) throws java.io.IOException, java.lang.ClassNotFoundException {
      long readSerialVersionUID = input.readLong();
      readVersion( (ext.tianma.model.RDPChange) this, input, readSerialVersionUID, false, false );
   }
   protected void super_readExternal_RDPChange(java.io.ObjectInput input) throws java.io.IOException, java.lang.ClassNotFoundException {
      super.readExternal(input);
   }

   public void writeExternal(wt.pds.PersistentStoreIfc output) throws java.sql.SQLException, wt.pom.DatastoreException {
      super.writeExternal( output );

      output.setObject( "changeInfo", changeInfo );
      output.setString( "creator", creator );
      output.setString( "module", module );
      output.setString( "owner", owner );
      output.writeObject( "persistable", persistable, wt.fc.ObjectReference.class, true );
      output.setString( "rdpId", rdpId );
      output.setString( "status", status );
      output.setString( "str_1", str_1 );
      output.setString( "str_2", str_2 );
      output.setString( "str_3", str_3 );
   }

   public void readExternal(wt.pds.PersistentRetrieveIfc input) throws java.sql.SQLException, wt.pom.DatastoreException {
      super.readExternal( input );

      changeInfo = (java.sql.Blob) input.getObject( "changeInfo" );
      creator = input.getString( "creator" );
      module = input.getString( "module" );
      owner = input.getString( "owner" );
      persistable = (wt.fc.ObjectReference) input.readObject( "persistable", persistable, wt.fc.ObjectReference.class, true );
      rdpId = input.getString( "rdpId" );
      status = input.getString( "status" );
      str_1 = input.getString( "str_1" );
      str_2 = input.getString( "str_2" );
      str_3 = input.getString( "str_3" );
   }

   boolean readVersion5615725834439641849L( java.io.ObjectInput input, long readSerialVersionUID, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      if ( !superDone )
         super.readExternal( input );

      changeInfo = (java.sql.Blob) input.readObject();
      creator = (java.lang.String) input.readObject();
      module = (java.lang.String) input.readObject();
      owner = (java.lang.String) input.readObject();
      persistable = (wt.fc.ObjectReference) input.readObject();
      rdpId = (java.lang.String) input.readObject();
      status = (java.lang.String) input.readObject();
      str_1 = (java.lang.String) input.readObject();
      str_2 = (java.lang.String) input.readObject();
      str_3 = (java.lang.String) input.readObject();
      return true;
   }

   protected boolean readVersion( RDPChange thisObject, java.io.ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      boolean success = true;

      if ( readSerialVersionUID == EXTERNALIZATION_VERSION_UID )
         return readVersion5615725834439641849L( input, readSerialVersionUID, superDone );
      else
         success = readOldVersion( input, readSerialVersionUID, passThrough, superDone );

      if (input instanceof wt.pds.PDSObjectInput)
         wt.fc.EvolvableHelper.requestRewriteOfEvolvedBlobbedObject();

      return success;
   }
   protected boolean super_readVersion_RDPChange( _RDPChange thisObject, java.io.ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      return super.readVersion(thisObject, input, readSerialVersionUID, passThrough, superDone);
   }

   boolean readOldVersion( java.io.ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      throw new java.io.InvalidClassException(CLASSNAME, "Local class not compatible: stream classdesc externalizationVersionUID="+readSerialVersionUID+" local class externalizationVersionUID="+EXTERNALIZATION_VERSION_UID);
   }
}
